package com.muse.designpatterns.proxy;

public class Proxy implements Subject{
    Subject subject;
    public Proxy(Subject subject) {
        this.subject = subject;
    }
    @Override
    public void request() {
        beforeProcessor();
        subject.request();
        afterProcessor();
    }
    private void beforeProcessor(){
        System.out.println("------ Proxy before Processor ------");
    }
    private void afterProcessor(){
        System.out.println("------ Proxy after Processor ------");
    }
}
